﻿<MVVMBase:WindowExtenBase x:Class="EzDesk.DesktopClient.PopupModule.View.NotificationPopupView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:MVVMBase="clr-namespace:EzDesk.MVVMBase;assembly=EzDesk.MVVMBase"                 
         AllowsTransparency="True"
        WindowStyle="None" 
        Background="Transparent"
        HorizontalAlignment="Right"
        VerticalAlignment="Bottom"
        WindowStartupLocation="Manual"

        Title="NotificationView" Height="30"  Width="288">
    <Border  x:Name="LayoutRoot"   BorderBrush="{DynamicResource BackOrange}" BorderThickness="1" CornerRadius="5,5,0,0" Background="{DynamicResource BackOrange}">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="*"></RowDefinition>
            </Grid.RowDefinitions>
            <DockPanel x:Name="TitlePanel" HorizontalAlignment="Stretch" Grid.Row="0" Margin="5,0"  LastChildFill="False">
                <ContentControl HorizontalAlignment="Stretch" VerticalAlignment="Bottom"  Content="{Binding ContentTitle, Converter={StaticResource XamlConverter}}"  Hyperlink.RequestNavigate="ContentControl_RequestNavigate">
                </ContentControl>
                <Button x:Name="CloseBtn" DockPanel.Dock="Right" Margin="1" Style="{StaticResource CloseButtonStyle}" Command="{Binding CloseWindowCommand}" VerticalAlignment="Top"  Width="16" Height="16"></Button>
            </DockPanel>

            <Grid  x:Name="BodyPanel" Grid.Row="1" Margin="0,2,0,0" Background="White" >
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition></RowDefinition>
                </Grid.RowDefinitions>
                <ContentControl Grid.Row="0" Margin="5,5,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"  Content="{Binding ContentBody, Converter={StaticResource XamlConverter}}"  Hyperlink.RequestNavigate="ContentControl_RequestNavigate">
                </ContentControl>
                <TextBlock  Margin="5,0,0,0"  Grid.Row="1" Foreground="#FF666666" Text="{Binding LastUpdate, Converter={StaticResource DatetimeConverter}}" />
                <Image Grid.RowSpan="2" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="60" Margin="0,0,-10,-10"  Source="{StaticResource LogoGreen}"  Opacity="0.3" Panel.ZIndex="-1" ></Image>
            </Grid>
        </Grid>
    </Border>
</MVVMBase:WindowExtenBase>
